package org.wisdom.ac.application.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringApplicationRunListener;
import org.springframework.context.ConfigurableApplicationContext;

import java.time.Duration;

/**
 * 启动监听服务
 *
 * @author 张智研
 * @date 2022/06/02 12:53
 **/
@Slf4j
public class AcServiceRunListener implements SpringApplicationRunListener {

    @SuppressWarnings("unused")
    public AcServiceRunListener(SpringApplication sa, String[] args) {

    }
    @Override
    public void ready(ConfigurableApplicationContext context, Duration timeTaken) {

        log.debug("服务启动ready...");
    }
}
